package cn.hyy.FVOnline.entity;


import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

public class User implements Serializable {

    //id
    private Integer id;
    //昵称
    private String username;
    //头像存放路径
    private String hsPath;
    //姓名
    private String name;
    //性别
    private String sex;
    //出生日期
    private String birthday;
    //电话
    private String telephone;

    //密码
    @JSONField(serialize = false)
    private String password;

    //累计消费
    private Integer integral;

    //用户级别
    private Integer level;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getHsPath() {
        return hsPath;
    }

    public void setHsPath(String hsPath) {
        this.hsPath = hsPath;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", hsPath='" + hsPath + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday='" + birthday + '\'' +
                ", telephone='" + telephone + '\'' +
                ", password='" + password + '\'' +
                ", integral=" + integral +
                ", level=" + level +
                '}';
    }
}
